home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000025_icon-group-sender _Wed May 24 11:58:00 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  4KB

  1. Received: by cheltenham.cs.arizona.edu; Wed, 24 May 1995 11:02:29 MST
  2. Message-Id: <9505241158.AA04986@ns1.computek.net>
  3. Mime-Version: 1.0
  4. Content-Length: 3128
  5. Content-Type: text/plain
  6. Content-Transfer-Encoding: 7bit
  7. Date: Wed, 24 May 95 11:58 CDT
  8. From: gep2@computek.net
  9. Subject: Re: icon notes [Re: Is there such a language...]
  10. To: icon-group@cs.arizona.edu
  11. X-Mailer: SPRY Mail Version: 04.00.06.14
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13.  
  14. >+Actually, for everyday programming tasks, I personally still prefer SNOBOL4+ 
  15. to Icon.  I just think it's easier to use, unless I need character sets or 
  16. combinatorial things or some of the other special features of Icon.
  17.  
  18. >Tell us more.  I find Icon fascinating, but it is so intricate
  19. in some ways and so different that it would take me a _long_
  20. time of stumbling in the dark to learn how to use it
  21. effectively.  
  22.  
  23. Well, you don't HAVE to use all the intricate things in ICON.  Most people, I'd 
  24. expect, start programming ICON in much the same way they would program in C, and 
  25. then sort of "grow into" its special higher-level features and paradigms as they 
  26. get more comfortable in the language.  The ICON book is a pretty good 
  27. introduction to the language, I think.
  28.  
  29. >I'd consider paying anyone who could show me tricks, techniques, tips.  After 
  30. all, there aren't hundreds of books on this fascinating language, and I'm not a 
  31. big one to reinvent the wheel.  
  32.  
  33. If you're interested in SNOBOL4, there's a WONDERFUL book showing you just 
  34. exactly that for the SNOBOL4 language.  It's called "Algorithms in SNOBOL4" 
  35. written by Gimpel (the same Gimpel who's responsible for C-Lint) and is 
  36. available from Catspaw, Inc. in Salida, Colorado (the people who did SNOBOL4+ 
  37. and now their newer Spitbol products).  The book is only about $20 I think, and 
  38. it's a -terrific- buy for the money.
  39.  
  40. >So share with us details, case studies, tips, tricks if you like; many of us 
  41. lurkers would like to see this sort of thing.
  42.  
  43. That book is a far more wonderful collection of tricks and tips than anything I 
  44. could ever hope to post here.  And of course, there's the other side:  once you 
  45. are somewhat familiar with the language, "tips and tricks" are so UNhidden and 
  46. so obvious that I suspect most of us don't think it's particularly worth sharing 
  47. something so obvious.  But I think it's fair to say that all of us who use and 
  48. love either ICON or SNOBOL4 have had so often the exhilaration of seeing an 
  49. otherwise complex problem solved, simply and elegantly, that it explains the 
  50. almost religious reverence that we have for these marvelous languages.
  51.  
  52. >In particular, how is Snobol preferable to Icon for some tasks?  
  53.  
  54. Well, for example, SNOBOL4 supports two extraordinarily interesting functions: 
  55. eval(), which evaluates expressions, possibly containing symbols;  and code(), 
  56. which converts an arbitrarily long character string containing SNOBOL4 source 
  57. code (even containing labels if you like, which you can reference externally) to 
  58. compiled object code (which you can later execute as often and as many times as 
  59. you like).  These are NOT preprocessor functions:  they are available at 
  60. runtime.  There is no equivalent capability in ICON.
  61.  
  62. The other major thing is that I personally find SNOBOL4's pattern matching to be 
  63. simpler and more intuitive (although admittedly ultimately less powerful) than 
  64. ICON's string scanning.
  65.  
  66. Of course, ICON also has a LOT of things that SNOBOL4 doesn't have... as with so 
  67. many other things in life, there are always tradeoffs.
  68.  
  69. Gordon Peterson
  70. http://www.computek.net/public/gep2
  71. 
  72.